//import angualr core
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

//import my components
import { ManageHotelComponent } from './manage-hotel.component';
import { HotelDetailComponent } from './hotel-detail/hotel-detail.component';

const routes: Routes = [
    {
        path: '',
        component: ManageHotelComponent,
        children: [
            {
                path: '',
                component: HotelDetailComponent
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})

export class ManageHotelRoutingModule {}
